﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace DFXEditorApp
{
    public static class NativeMethods
    {
        const string dllName = "DFXEditor.dll";

        [DllImport(dllName)]
        public unsafe static extern int EditorMain(IntPtr topHandle, int topWidth, int topHeight,
            IntPtr leftHandle, int leftWidth, int leftHeight,
            IntPtr rightHandle, int rightWidth, int rightHeight,
            IntPtr perspHandle, int perspWidth, int perspHeight);

        [DllImport(dllName)]
        public unsafe static extern void EditorRender(int index);

        [DllImport(dllName)]
        public unsafe static extern void EditorDestroy();

        [DllImport(dllName)]
        public unsafe static extern void EditorWndProc(IntPtr handle, int msg, int wParam, int lParam);

        [DllImport(dllName)]
        public unsafe static extern void EditorSwapBuffers(int index);
    }
}
